package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.common.R;
import com.demo.domain.SetmealDish;
import com.demo.domain.ShoppingCart;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


public interface ShoppingCartService extends IService<ShoppingCart> {
    /**
     * 查询购物车信息
     * @param
     * @return
     */
    R<List<ShoppingCart>> cartListApi();


    /**
     * 添加商品至购物车
     * @param shoppingCart
     * @return
     */
    R<ShoppingCart> addCartApi(@RequestBody ShoppingCart shoppingCart);

    /**
     * 清空购物车
     * @return
     */
    R<String> clean();


    R<String> sub(@RequestBody ShoppingCart shoppingCart);
}
